

import 'package:drive/drive.dart';
import 'package:flutter_mvc_example/common/res.dart';
import 'package:flutter_mvc_example/common/widget/widget.dart';

import 'controller.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mvc/flutter_mvc.dart';

import 'widget.dart';

///description:商品详情
class GoodPage extends BasePage<GoodController> {
  @override
  Widget build(BuildContext context) {
    return SystemStateBar(
      child: Material(
        color: resBackgroundColorF2,
        child: Column(
          children: [
            Expanded(
              child: Stack(
                children: [
                  Positioned.fill(
                    child:ListView(
                      controller: c.scrollController,
                      physics: BouncingScrollPhysics(),
                      padding: EdgeInsets.only(),
                      children: [
                        KeepAliveSWidget(
                          child: Column(
                            mainAxisSize: MainAxisSize.min,
                            children: [

                              PicItem(),
                              TitleItem(),
                              SpecItem(),
                              ValueItem(),
                              ShopItem(),
                              TipsContentItem(),
                            ],
                          ),
                        ),
                        ContentItem()
                      ],
                    ),
                  ),
                  TitleBarItem(),
                ],
              ),
            ),
            LineWidget(),
            BottomItem()
          ],
        ),
      ),
    );
  }
}
